package com.ruoyi.hr.service.impl.welfare.welfareopen;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.mapper.welfare.welfareopen.WelfareOpenHistoryMapper;
import com.ruoyi.hr.service.welfare.welfareopen.WelfareOpenHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class WelfareOpenHistoryServiceImpl implements WelfareOpenHistoryService {

    @Autowired
    WelfareOpenHistoryMapper welfareOpenHistoryMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> findData(String startingTime, String terminationTime, String name, String badge,List<Authority> authorities,int isAdmin) {
        return welfareOpenHistoryMapper.findData(startingTime, terminationTime, name, badge,authorities,isAdmin);
    }
}
